package org.despair2D.ui.core 
{
	import flash.events.IEventDispatcher;
	
	[Event(name = "popup", type = "org.despair2D.ui.events.PanelEvent")] 
	
	[Event(name = "close", type = "org.despair2D.ui.events.PanelEvent")] 
	
public interface IPanel extends IEventDispatcher
{
	
	/** ◇是否被弹出 **/
	function get isPopup() : Boolean
	
	
	/**
	 * ◆弹出
	 * @param	layer
	 * @param	immediate
	 * @param	stateArgs
	 */
	function popup( layer:int = -1, immediate:Boolean = true, stateArgs:Array = null ) : void
	
	/**
	 * ◆关闭
	 * @param	destroy
	 */
	function close( destroy:Boolean = true ) : void
}
}